package com.bamanker.cloudapi.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author bamanker
 */
@Data
@TableName("sms_toEmails")

public class toEmail {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "email")
    private String email;

    @TableField(value = "name")
    private String name;

    @TableField(value="create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Version    //乐观锁version注解
    private Integer version;

    @TableLogic //逻辑删除
    private Integer deleted;
}
